<form id="form" action="{:url('vip.index/edit')}">
    <input type="hidden" name="id" value="{$info.id}" />
    <div class="titlebar">开通权限</div>
    <table class="formtable">
        <tr>
            <th>自动升级:</th>
            <td>
                <select datatype="*" class="select w180" name="is_auto_up">
                    <option value="0" selected="selected"  {if $info.is_auto_up == 0 } selected = "selected" {/if}>关闭</option>
                    <option value="1"  {if $info.is_auto_up == 1 } selected="selected" {/if}>开启</option>
                </select>
                <span class="gray">关闭后,满足条件不自动升级</span>
            </td>
        </tr>
        <tr><th>会员数:</th><td><input class="input" datatype="n" type="text" name="open_vip_num" value="{$info.open_vip_num}" /></td></tr>
        <tr><th>商家数:</th><td><input class="input" datatype="n" type="text" name="open_store_num" value="{$info.open_store_num}" /></td></tr>
    </table>  
    <div class="titlebar">消费买单</div>
    <table class="formtable">
        <tr><th>买单消费(%):</th><td><input class="input" datatype="n" type="text" name="pay_share_reward"  value="{$info.pay_share_reward}"/> %</td></tr>
        <tr><th>门店会员(%):</th><td><input class="input" datatype="n" type="text" name="pay_queue_reward"  value="{$info.pay_queue_reward}"/> %</td></tr>
    </table>
    <div class="titlebar">基础配置</div>
    <table class="formtable">
        <tr><th>会员名称:</th><td><input class="input" datatype="*" type="text" name="name" value="{$info.name}" /></td></tr>
        <tr><th>开通金额(元):</th><td><input autocomplete="off" class="input" datatype="npot" type="text" name="price" value="{$info.price}" /></td></tr>
        <tr><th>直推奖(￥):</th><td><input class="input" datatype="npot" type="text" name="open_share_reward" value="{$info.open_share_reward}" />￥</td></tr>
        <tr><th>间推奖(￥):</th><td><input class="input" datatype="npot" type="text" name="open_queue_reward" value="{$info.open_queue_reward}" />￥</td></tr>
        <tr><th>采购基金(￥):</th><td><input class="input" datatype="npot" type="text" name="fund" value="{$info.fund}" />￥</td></tr>
        <tr><th>会员特权:</th><td><textarea class="textarea ui-mieditor" id="rule" name="rule">{$info.rule|dehtml}</textarea></td></tr>
        <tr><th></th><td><input type="submit" value="确定" class="button button-blue submit" /><input type="reset" value="重置" class="button button-blank" /></td></tr>
    </table>
</form>
<script type="text/javascript">
Do('base', 'layer', 'form','editor', function () {
    $('#form').isForm({'upload':'{:url("system/passport.common/upload")}'});
})
</script>